package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"github.com/gorilla/mux"
)
var r = mux.NewRouter()

func main() {
	r.HandleFunc("/", cmd)
	http.ListenAndServe(":5000", r)	
}

func cmd(w http.ResponseWriter, r *http.Request) {
	defer r.Body.Close()
	b, _ := ioutil.ReadAll(r.Body)
	fmt.Println(b)
}